#include "ScrOverlay.h"
#include "Renderer.h"
#include "ScreenManager.h"
#include "Game.h"
#include "Constant.h"

ScrOverlay::ScrOverlay(void) : GameScreen()
{
}
ScrOverlay::~ScrOverlay(void)
{
}

string ScrOverlay::GetInternalName()
{
	return string("debugOverlay");
}
void ScrOverlay::Render()
{
	vector2 screen = m_pRenderer->GetScreenSize();
	m_pRenderer->SetFillMode(FM_Solid);
	color c = (color::Blue * 0.3f);
	c.a = 127;
	m_pRenderer->SetColor(c);
	m_pRenderer->DrawRect2D(vector2(0, 0), vector2(screen.IX(), FONTPTS_SMALL + 2));

	//Render debug status text
	stringstream status;
	status << "Constructor Debug build: ";
	status << m_pGame->GetFPS() << "FPS";
	m_pRenderer->PrintStr2D(vector2(2,0), status.str(), color::White);
}
void ScrOverlay::Update()
{
}
bool ScrOverlay::ScreenInit(IGame *pGame)
{
	if(!GameScreen::ScreenInit(pGame))
		return false;
	return true;
}